@setlocal
if not defined BUILDTYPE set BUILDTYPE=Release
if not defined WIXUI_PATH set WIXUI_PATH=F:\share\tools\WiX

candle -dBUILDTYPE=%BUILDTYPE% -dPROJECTROOT=%~dp0.. -pedantic -wx -w0 -out "%~dp0%BUILDTYPE%\RegSearch.wixobj" "%~dp0RegSearch.wxs"
light -fv -sw1076 -sw1055 -wx -w0 -pedantic:legendary -out "%~dp0%BUILDTYPE%\RegSearch.msi" "%~dp0%BUILDTYPE%\RegSearch.wixobj" -ext WixUIExtension -cultures:en-us